import request from '@/utils/request'

// 查询Erp物流服务线路列表
export function listLogisticsServiceInfo(query) {
  return request({
    url: '/purchase/logisticsServiceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询Erp物流服务线路详细
export function getLogisticsServiceInfo(id) {
  return request({
    url: '/purchase/logisticsServiceInfo/' + id,
    method: 'get'
  })
}

// 新增Erp物流服务线路
export function addLogisticsServiceInfo(data) {
  return request({
    url: '/purchase/logisticsServiceInfo',
    method: 'post',
    data: data
  })
}

// 修改Erp物流服务线路
export function updateLogisticsServiceInfo(data) {
  return request({
    url: '/purchase/logisticsServiceInfo',
    method: 'put',
    data: data
  })
}

// 删除Erp物流服务线路
export function delLogisticsServiceInfo(id) {
  return request({
    url: '/purchase/logisticsServiceInfo/' + id,
    method: 'delete'
  })
}

// 启用/不启用仓库按钮
export function enableWarehouse(query) {
  return request({
    url: '/purchase/logisticsServiceInfo/enableLogisticsService',
    method: 'get',
    params: query
  })
}